package com.lishe.lishe.lishe.module.commonclass;

import com.lishe.lishe.lishe.base.BaseApplication;

import me.leolin.shortcutbadger.ShortcutBadger;

/**
 * Created by shino on 2017/11/14.
 * 桌面logo的数字
 */

public class DesktopLogoNumberUtils {

    /**
     * 设置桌面数字
     *
     * @param number
     */
    public static void setNumber(int number) {
        ShortcutBadger.applyCount(BaseApplication.getContext(), number); //for 1.1.4+
    }

    /**
     * 清除数字
     * 会使用setNumber（0）
     */
    public static void cleanNumber() {
        ShortcutBadger.removeCount(BaseApplication.getContext()); //for 1.1.4+
    }
}
